import 'package:flutter/material.dart';
import 'package:flutter_study_2/routes/index.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primaryColor: Colors.blue,
      ),
      initialRoute: '/', // 设置初始路由
      onGenerateRoute: AppRoutes.generateRoute, // 使用路由生成器
    );
  }
}
